package verappdesktop.utils;

import javax.swing.JCheckBox;

import verappdesktop.core.Variable;

public class CheckBoxWithVariable extends JCheckBox {
	private Variable var;
	
	private CheckBoxWithVariable(){}
	
	public CheckBoxWithVariable(Variable var){
		super(var.getName() + " [" + var.getUnit() + "]");
		this.var = var;
	}
	
	public Variable getVariable(){
		return var;
	}
}
